﻿using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace HDSmartCommunity.BUS.MqttBUS
{
    public static class MqttAppExtensions
    {
        public static IApplicationBuilder UseMqttClient(this IApplicationBuilder app)
        {
            var server = app.ApplicationServices.GetRequiredService<FXMqttClient>();

            return app;
        }
    }
}
